import {Utility} from "@/libs/utility"

export const ECGMonitoringRecordsForm = (item) => {
    return [
        {
            fieldName: "id",
            fieldCNName: "",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "",
        },
        {
            /** 字段名，如：name */
            fieldName: "examineeCode",
            /** 字段对应的中文解释，如：姓名 */
            fieldCNName: "受试者编号",
            /** 字段的值，如：张三 */
            filedValue: 1,
            disabled: true,
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "inputText",
            rules: {
                required: true, // 只有为true的时候才写，为false这个字段不要
            },
            span: 2,
        },
        {
            disabled: true,
            /** 字段名，如：name */
            fieldName: "examineeName",
            /** 字段对应的中文解释，如：姓名 */
            fieldCNName: "受试者姓名",
            /** 字段的值，如：张三 */
            filedValue: 1,
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "inputText",
            rules: {
                required: true, // 只有为true的时候才写，为false这个字段不要
            },
            span: 2,
        },
        {
            /** 字段名，如：name */
            fieldName: "randomNo",
            /** 字段对应的中文解释，如：姓名 */
            fieldCNName: "随机号",
            /** 字段的值，如：张三 */
            filedValue: 1,
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "inputText",
            disabled: true,
            span: 2,
            rules: {
                required: true, // 只有为true的时候才写，为false这个字段不要
            },
        },
        {
            fieldName: "monitorNo",
            fieldCNName: "监测时间点",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            // type: "time",
            type: "select",
            span: 2,
            rules: {
                required: true, // 只有为true的时候才写，为false这个字段不要
            },
            itemList: item,
        },
        {
            fieldName: "hr",
            fieldCNName: "HR(次/分)",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "inputNumber",
            span: 2,
        },
        {
            fieldName: "pr",
            fieldCNName: "PR间期(ms)",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "inputNumber",
            span: 2,
        },
        {
            fieldName: "qrs",
            fieldCNName: "QRS间期(ms)",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "inputNumber",
            span: 2,
        },
        {
            fieldName: "qt",
            fieldCNName: "QT间期(ms)",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "inputNumber",
            span: 2,
        },
        {
            fieldName: "qtc",
            fieldCNName: "QTC间期(ms)",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "inputNumber",
            span: 2,
        },
        {
            fieldName: "monitorTime",
            fieldCNName: "监测开始时间",
            fieldNames: ["monitorBeginTime", "monitorEndTime"],
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "datetimerange",
            span: 2,
            rules: {
                required: true, // 只有为true的时候才写，为false这个字段不要
            },
        },
        {
            fieldName: "reportJudge",
            fieldCNName: "报告判断",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "select",
            span: 2,
            itemList: Utility.getDictList("p_select_option"),
        },
        {
            fieldName: "reportByName",
            fieldCNName: "报告人",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "inputText",
            span: 2,
        },
        {
            fieldName: "reportTime",
            fieldCNName: "报告时间",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "datetime",
            span: 2,
        },
        {
            fieldName: "reportResult",
            fieldCNName: "报告结果",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "textarea",
        },
        {
            fieldName: "remarks",
            fieldCNName: "备注",
            filedValue: "",
            /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
            type: "textarea",
        },
    ]
}
